package com.mvp.shq.washer.ui.shop.shopcar;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.CollectResponse;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by westing on 2017/10/09.
 */

public class Model implements ShopCarConstract.Model {
    @Override
    public Observable<BaseResult<String>> collectProduct(String token, String userId, List<CollectResponse> list) {
        return ShopApi.getInstance().service
                .addCollect(token,userId,list)
                .compose(RxSchedulers.io_main());
    }
}
